<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class CreateUserProfilePersonal1Table extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('user_profile_personal', function (Blueprint $table) {
            $table->string('id_card_pics', 60)->default('')->comment('身份证照片')->after('id_card');
            $table->string('phone', 12)->default('')->comment('手机号')->after('id_card');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('user_profile_personal', function (Blueprint $table) {
            //
        });
    }
}
